package njust.dao;

import java.util.List;

import njust.domain.Image;
import njust.domain.Needs;

public interface NeedsDao {

	public boolean addNeeds(Needs needs);	
	 public boolean deleteNeeds(int id);
	 public List getAllNeeds();
	 public Needs getNeedsById(int id);
	 public List getNeedByUserId(int id);
	 public List<Needs> getNeedsByPage(final int pageSize, final int pageNow);
	 public int pageTotle(int pageSize, int pageNow);
}
